package com.efesco.finance.oughtReceive;

import com.bstek.dorado.common.*;
import com.bstek.dorado.data.*;
import com.bstek.dorado.data.db.SqlDataset;
import com.bstek.dorado.view.*;
import com.bstek.dorado.view.data.*;
import com.bstek.dorado.view.control.*;
import com.bstek.dorado.view.control.table.Table;
import com.efesco.common.Tools;
import com.bstek.dorado.view.control.table.ColumnGroup;
import com.bstek.dorado.view.control.table.Column;



/**
 * paymentDetailViewModel
 */
public class paymentDetailViewModel extends DefaultViewModel {
  protected void initControls()
      throws Exception {
    super.initControls();
    Table table1 = (Table)this.getControl("paymentDetailTable");
    
    DoradoContext context = DoradoContext.getContext();
	String paymentVersionId = Tools.toStr((String) context.getParameter("paymentVersionId"));
	String paymentType = Tools.toStr((String) context.getParameter( "paymentType"));
	
	OughtReceive oughtReceive = new OughtReceive();
	oughtReceive.creatPaymentTable(table1,paymentVersionId,paymentType);
  }

}
